package com.cloudcc.mobile.weight;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

public class EmptyListView extends ListView {

	private EmptyLayout emptyLayout;

	public EmptyListView(Context context) {
		this(context, null);
	}

	public EmptyListView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}

	public EmptyListView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);

	}

	@Override
	protected void onFinishInflate() {
		super.onFinishInflate();
		stepViews();
	}

	/**
	 * 
	 */
	private void stepViews() {
		emptyLayout = new EmptyLayout(getContext());
		setEmptyView(emptyLayout);
	}

	public EmptyLayout getEmptyView() {
		return emptyLayout;
	}

}
